home *** CD-ROM | disk | FTP | other *** search
/ Echoes of Ireland / Echoes of Ireland.iso / IRISH_ENGINE / epss / glossary / Poor law relief.swf / scripts / DefineButton2_13 / BUTTONCONDACTION on(release).as < prev   
Encoding:
Text File  |  2004-06-10  |  789 b   |  22 lines

  1. on(release){
  2.    if(_global.Behaviors == null)
  3.    {
  4.       _global.Behaviors = {};
  5.    }
  6.    if(_global.Behaviors.Sound == null)
  7.    {
  8.       _global.Behaviors.Sound = {};
  9.    }
  10.    if(typeof this.createEmptyMovieClip == "undefined")
  11.    {
  12.       this._parent.createEmptyMovieClip("BS_Poorlawrelief",new Date().getTime() - Math.floor(new Date().getTime() / 10000) * 10000);
  13.       _global.Behaviors.Sound.Poorlawrelief = new Sound(this._parent.BS_Poorlawrelief);
  14.    }
  15.    else
  16.    {
  17.       this.createEmptyMovieClip("_Poorlawrelief_",new Date().getTime() - Math.floor(new Date().getTime() / 10000) * 10000);
  18.       _global.Behaviors.Sound.Poorlawrelief = new Sound(this.BS_Poorlawrelief);
  19.    }
  20.    _global.Behaviors.Sound.Poorlawrelief.loadSound("audio\\Poor law relief.mp3",true);
  21. }
  22.